package com.retail.bbq.cola.feign;

import com.retail.bbq.cola.vo.request.ColaActivityPointRequest;
import com.retail.bbq.cola.vo.request.LawsonSyncMemberRequest;
import com.retail.bbq.cola.vo.request.stampCollection.ColaActivityPointQueryRequest;
import com.retail.bbq.cola.vo.request.stampCollection.ColaOrderListRequest;
import com.retail.bbq.cola.vo.response.ColaActivityPointResponse;
import com.retail.bbq.cola.vo.response.LawsonSyncMemberResponse;
import com.retail.bbq.cola.vo.response.stampCollection.ColaActivityPointQueryResponse;
import com.retail.bbq.cola.vo.response.stampCollection.ColaOrderListResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "colaFeignClient", url = "${api.forward.targetUrl}")
public interface ColaFeign {

    @RequestMapping(value = "/api/icoke-thirdorder/{buCode}/third_order/third_api/queryOrderList/{campaignCode}", method = RequestMethod.GET)
    ColaOrderListResponse queryOrderList(@PathVariable("buCode") String buCode,
                                     @PathVariable("campaignCode") String campaignCode,
                                     @RequestHeader("Authorization") String token,
                                         @RequestParam("sort") String sort,
                                         @RequestParam("base64_exp") String expression);

    @RequestMapping(value = "/api/icoke-thirdorder/{buCode}/third_order/third_api/queryActivityPointByCustomerId", method = RequestMethod.POST)
    ColaActivityPointResponse queryActivityPointByCustomerId(@PathVariable("buCode") String buCode,
                                             @RequestHeader("Authorization") String token,
                                             @RequestBody ColaActivityPointRequest request);

    @RequestMapping(value = "/api/icoke-thirdorder/{buCode}/third_order/third_api/queryActivityPointList/{campaignCode}", method = RequestMethod.GET)
    ColaActivityPointQueryResponse queryActivityPointList(@PathVariable("buCode") String buCode,
                                                          @PathVariable("campaignCode") String campaignCode,
                                                          @RequestHeader("Authorization") String token,
                                                          @RequestParam("sort") String sort,
                                                          @RequestParam("base64_exp") String expression);

}
